/* 
* @Author: LDF QQ 47121862
* @Date:   2014-06-09 18:51:32
* @Last Modified by:   LDF QQ 47121862
* @Last Modified time: 2014-06-09 21:58:25
*/

$(function (){
	//系列剧集添加最新
	var newsHtml="<b class='rad4 bgred1 white p2 fs f10 newsHt abs'>新</b>";
	$('.new').append(newsHtml);
	$('.newsHt').animate({'top':'-18px','right':'-15px'});
	var iht=0;
	setInterval(function(){
		iht = iht>16 ? 15 : 17;
		iht++;
		$('.newsHt').animate({'width':iht+'px','height':iht+'px'});
	},100)
	//笑脸
	$('.di').hover(function(){
		$(this).animate({'margin-top':'20px'});
	},function(){
		$(this).animate({'margin-top':'25px'});
	})
	//点击剧集切换act
	$('#juji')
})

//顶=============================
function ding(id){
	var strs="<span class='green b fm f18'>222</span>";
	var url=$(id).attr('href'),stat=$(id).attr('stat');
	$.post(url,{xid:xid,stat:stat},function(re){
		if(re=='1'){ //喜欢
			$.msg({str:'<span class="green b">喜欢+1</span>'});
			var n = Number($('.dingT').text())+1;
			$('.dingT').text(n);
		}else if(re=='0'){ //不喜欢
			$.msg({str:'<span class="gray b">喜欢-1</span>'});
			var n = Number($('.downT').text())+1;
			$('.downT').text(n);
		}else{ //已经选择过了
			$.msg({str:'<span class="red b">对此您已经有了态度！</span>'});
		}
	})
	return false;
}